<!DOCTYPE html>
<!-- saved from url=(0030)./manageIcode -->
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span></span>
        <ul>
            <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
            <li class="on"><a href="{:U('Users/manageIcode')}">邀请码</a></li>
        </ul>
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/manageInvite')}" class="iconfont back"></a> </header>

    <div data-v-00816edb="" style="padding-bottom: 0;" class="main creatAccount" s="[object Object]">
        <div data-v-00816edb="" class="creatAccountTitle radio">
            开户类型
            <a href="./manageIcode/AgentCode.html"  data-v-00816edb="">
                <input data-v-00816edb="" name="leixing" checked type="radio" value="1" id="radio1" onclick="xuanze()">
                <label data-v-00816edb="" for="radio1">代理类型</label>
            </a>
            <a href="./manageIcode/memberCode.html" class="" data-v-00816edb="">
                <input data-v-00816edb="" name="leixing" <?php if($leixing=='2'){echo 'checked';}; ?> type="radio" value="2" id="radio2" onclick="xuanze()">
                <label data-v-00816edb="" for="radio2">玩家类型</label>
            </a>
        </div>
        <div data-v-65eb88bf="" class="_div" data-v-00816edb="">
            <div data-v-65eb88bf="" id="TouchScroll" class="tabLI">
                <div data-v-65eb88bf="" data-key="false" class="InviteTableBox">
                    <table data-v-65eb88bf="" class="col3Table manageInviteTable">
                        <tbody data-v-65eb88bf="">
                        <tr data-v-65eb88bf="">
                            <th data-v-65eb88bf="">邀请码</th>
                            <th data-v-65eb88bf="">生成时间</th>
                            <th data-v-65eb88bf="">状态</th>
                        </tr>
                        <foreach name="arr" item="v">
                        <tr data-v-65eb88bf="" class="active" id="code" data-code="{$v.code}">
                            <td data-v-65eb88bf="" style="color:#38f">{$v.code}</td>
                            <td data-v-65eb88bf=""><?php echo date('Y-m-d H:i:s',$v['ctime']); ?></td>
                            <td data-v-65eb88bf="">注册({$v.num})</td>
                        </tr>
                        </foreach>
                        <tr data-v-65eb88bf="">
                            <td data-v-65eb88bf="" colspan="3" class="msg loadingMsg">已显示全部内容</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="_problemBox" data-v-473a97a8="" style="display: none">
                    <div class="blackBg"></div>
                    <div class="moreLayer">
                        <ul>
                            <input type="hidden" id="code2">
                            <li><a class="chakan">查看返点</a></li>
                            <li><a class="del">删除邀请码</a></li>
                        </ul>
                        <ul>
                            <li><a class="quxiao">取消</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div data-v-473a97a8="" class="showCodeDetail" style="display: none">
                <div data-v-473a97a8="" class="blackBg"></div>
                <div data-v-473a97a8="" class="creatAccountDetail">
                    <h3 data-v-473a97a8="" class="line" style="height: 80px;margin-top: 40px">
                        <em data-v-473a97a8="" style="font-size: 22px;font-weight: 100">返点详情</em>
                        <a data-v-473a97a8="" class="quxiao2">
                            <i data-v-473a97a8="" class="iconfont"></i>
                        </a>
                    </h3>

                    <ul data-v-473a97a8="" class="infoshow">
                        <li data-v-473a97a8="" style="">
                            <span data-v-473a97a8="" style="margin-left: 30px;text-align: center">彩种</span>
                            <span data-v-473a97a8="" style="margin-left: 75px;text-align: center">返点</span>
                        </li>

                        <li data-v-473a97a8="">
                            <span data-v-473a97a8="" style="margin-left: 30px">北京PK10</span>
                            <span class="pk10" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">北京快乐8</span>
                            <span class="kl8" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">排列3/5</span>
                            <span class="pl3_5" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">福彩3D</span>
                            <span class="fc3d" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">11选5</span>
                            <span class="x11_5" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">快3</span>
                            <span class="k3" style="margin-left: 100px"></span>
                        </li>
                        <li data-v-473a97a8="">
                            <span data-v-473a97a8=""  style="margin-left: 30px">时时彩:</span>
                            <span class="ssc" style="margin-left: 100px"></span>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
        <!--验证账号弹出框 begion-->
        <div id="tan" class="layermbox layermbox0 layermshow" index="1" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <div class="layermcont">您确定要删除邀请码吗？</div>
                        <div class="layermbtn">
                            <span class="quxiao3">取消</span>
                            <span class="queding">确定</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--验证账号弹出框 end-->

    </div>
</div>
</body>
</html>
<script>

    //筛选代理还是玩家
    function xuanze(){
        var leixing = $(':radio[name="leixing"]:checked').val();
        window.location.href="/Users/manageIcode/leixing/"+leixing;
    }

    $(".active").click(function(){
        var code = $(this).data("code");
        $("#code2").val(code);
        $("._problemBox").show();
    });
    //查看返点
    $(".chakan").click(function(){
        $(".showCodeDetail").show();
        var code =  $("#code2").val();
        $.ajax({
            type: "POST",
            url: "{:U('Users/manageIcode2')}",
            data: { 'code': code },
            success: function (dat) {
                var result=dat.split(",");
                for(var i=0;i<result.length;i++){
                    result[i];
                }

                var ssc = result[0];
                var k3 = result[1];
                var x11_5 = result[2];
                var fc3d = result[3];
                var kl8 = result[4];
                var pk10 = result[5];
                var pl3_5 = result[6];
                $(".ssc").html(ssc);
                $(".k3").html(k3);
                $(".x11_5").html(x11_5);
                $(".fc3d").html(fc3d);
                $(".kl8").html(kl8);
                $(".pk10").html(pk10);
                $(".pl3_5").html(pl3_5);
                $(".showCodeDetail").show();
            }
        });

    });

    $(".del").click(function(){
        $("#tan").show();
    });


    $(".queding").click(function(){
        var code =  $("#code2").val();
        $.ajax({
            type: "POST",
            url: "{:U('Users/manageIcode_del')}",
            data: { 'code': code },
            success: function (dat) {
                if(dat==1){
                   window.location.href = "";
                }
            }
        });
    });



    $(".quxiao").click(function(){
        $("._problemBox").hide();
    });
    $(".quxiao2").click(function(){
        $(".showCodeDetail").hide();
    });
    $(".quxiao3").click(function(){
        $(".layermbox").hide();
    });
</script>